using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using BusinessLayer;
using System.Web.UI.WebControls;

namespace WebControls
{
    public class SFUserControl : UserControl
    {
        public SFUserControl()
        { 
        
        }
        public void MessageBoxShow(string message)
        {
            ((SFPage)this.Page).MessageBoxShow(message);
        }
        public void MessageBoxShow(BusinessBase business)
        {
            ((SFPage)this.Page).MessageBoxShow(business);
        }
        public void MessageBoxShow(SFPage page)
        {
            ((SFPage)this.Page).MessageBoxShow(page);
        }
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            ((Panel)this.FindControl("pnlHeader")).Attributes["onclick"] = "SetPanel('" + this.FindControl("pnlContent").ClientID + "','" + ((ImageButton)this.FindControl("imgExpandCollapse")).ClientID + "');return false;";
        }
    }
}
